#include<stdio.h>

int main()
{
	int sign,flag;
	char t,c[10]={'\0'};
	gets(c);
	for(sign=0;sign<7;sign++)
	{
		t=c[sign];
		if(t>='a'&&t<='z') t='z'-(t-'a');
		if(t>='A'&&t<='Z') t='Z'-(t-'A');
		c[sign]=t;
	}
	puts(c);
	return 0;
}
